interface UploadClassPhotosAPIParams {
  id: string
  image: string
  type: string
  cover?: string
}

interface UploadClassPhotosAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

/**
 * @description 上传班级相册
 */
export function uploadClassPhotosAPI(data: UploadClassPhotosAPIParams, token: string) {
  return httpInstance.post<UploadClassPhotosAPIResData, UploadClassPhotosAPIParams>(
    '/api/sign/addalbum',
    data,
    { headers: { token } },
  )
}
